
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>ubuntu · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="vscode.html" />
    
    
    <link rel="prev" href="tcp-ip.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    starting
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../INTRODUCTION.html">
            
                <a href="../INTRODUCTION.html">
            
                    
                    introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    algorithm
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../algorithm/graphic_processing/">
            
                <a href="../algorithm/graphic_processing/">
            
                    
                    graphic_processing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../algorithm/machine_learning/">
            
                <a href="../algorithm/machine_learning/">
            
                    
                    machine_learning
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../algorithm/other/">
            
                <a href="../algorithm/other/">
            
                    
                    other
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    language
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../language/cpp/">
            
                <a href="../language/cpp/">
            
                    
                    cpp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../language/golang/">
            
                <a href="../language/golang/">
            
                    
                    golang
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../language/java/">
            
                <a href="../language/java/">
            
                    
                    java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../language/javascript/">
            
                <a href="../language/javascript/">
            
                    
                    javascript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../language/python/">
            
                <a href="../language/python/">
            
                    
                    python
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    soft_skills
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="docker.html">
            
                <a href="docker.html">
            
                    
                    docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="git.html">
            
                <a href="git.html">
            
                    
                    git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="ideaj.html">
            
                <a href="ideaj.html">
            
                    
                    ideaj
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="linux.html">
            
                <a href="linux.html">
            
                    
                    linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="maven.html">
            
                <a href="maven.html">
            
                    
                    maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="mysql.html">
            
                <a href="mysql.html">
            
                    
                    mysql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="nginx.html">
            
                <a href="nginx.html">
            
                    
                    nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="node.js.html">
            
                <a href="node.js.html">
            
                    
                    node.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="oracle.html">
            
                <a href="oracle.html">
            
                    
                    oracle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="redis.html">
            
                <a href="redis.html">
            
                    
                    redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="script.html">
            
                <a href="script.html">
            
                    
                    script
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="skill.html">
            
                <a href="skill.html">
            
                    
                    skill
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="tcp-ip.html">
            
                <a href="tcp-ip.html">
            
                    
                    tcp-ip
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.14" data-path="ubuntu.html">
            
                <a href="ubuntu.html">
            
                    
                    ubuntu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="vscode.html">
            
                <a href="vscode.html">
            
                    
                    vscode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="windows.html">
            
                <a href="windows.html">
            
                    
                    windows
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >ubuntu</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x521D;&#x59CB;&#x5316;-ubuntu-1804">&#x521D;&#x59CB;&#x5316; Ubuntu 18.04</h2>
<h3 id="&#x7EC8;&#x7AEF;">&#x7EC8;&#x7AEF;</h3>
<ol>
<li>&#x4FEE;&#x6539; /etc/apt/sources.list &#x4E3A;&#x963F;&#x91CC;&#x6E90;&#x6216;&#x6E05;&#x534E;&#x6E90;</li>
<li>&#x5B89;&#x88C5; vim&#xFF0C;git&#xFF0C;nginx&#xFF0C;node&#xFF0C;redis&#xFF0C;mysql &#x7B49;</li>
<li>&#x5B89;&#x88C5;&#x914D;&#x7F6E; zsh &#x548C; on-my-zsh&#xFF0C;&#x8BE6;&#x89C1; <a href="https://github.com/ohmyzsh/ohmyzsh" target="_blank">https://github.com/ohmyzsh/ohmyzsh</a></li>
<li>&#x5B89;&#x88C5; openssh-server</li>
</ol>
<h3 id="&#x754C;&#x9762;">&#x754C;&#x9762;</h3>
<ul>
<li>&#x7EC8;&#x7AEF;&#x5B89;&#x88C5; gnome-tweak-tool&#xFF0C;chrome-gnome-shell</li>
<li>&#x524D;&#x5F80; <a href="https://www.opendesktop.org/" target="_blank">https://www.opendesktop.org/</a> &#x4E0B;&#x8F7D;&#x4E3B;&#x9898;&#x548C;&#x56FE;&#x6807;&#xFF0C;&#x5206;&#x522B;&#x653E;&#x5165; /usr/share/themes &#x548C; /usr/share/icons&#xFF08;&#x4E0D;&#x5EFA;&#x8BAE;&#x4E0B;&#x8F7D;&#x6697;&#x9ED1;&#x4E3B;&#x9898;&#xFF0C;&#x90E8;&#x5206;&#x56FD;&#x4EA7;&#x8F6F;&#x4EF6;&#x9002;&#x5E94;&#x6027;&#x5DEE;&#xFF09;</li>
<li>&#x524D;&#x5F80; <a href="https://extensions.gnome.org/" target="_blank">https://extensions.gnome.org/</a> &#xFF0C;&#x7B2C;&#x4E00;&#x6B21;&#x8FDB;&#x5165;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x63D0;&#x793A;&#x6D4F;&#x89C8;&#x5668;&#x5B89;&#x88C5; gnome-shell-integration&#xFF0C;&#x4E4B;&#x540E;&#x641C;&#x7D22;&#x4E0B;&#x8F7D; Dash to Dock  &#x548C; Hide Top Panel</li>
<li>&#x5B89;&#x88C5;&#x5FAE;&#x8F6F;&#x5B57;&#x4F53;&#xFF0C;&#x5C06; C:\Windows\Fonts &#x79FB;&#x52A8;&#x5230; /usr/share/fonts/msfont &#x4E0B;&#x9762;&#xFF0C;&#x7136;&#x540E;&#x4F7F;&#x7528; fc-cache &#x5237;&#x65B0;&#x5B57;&#x4F53;&#x7F13;&#x5B58;&#x6216;&#x6CE8;&#x9500;</li>
<li>&#x6700;&#x540E;&#x5728; gnome-tweak-tool &#x914D;&#x7F6E;&#x4E0A;&#x9762;&#x4E0B;&#x8F7D;&#x7684;&#x4E1C;&#x897F;&#xFF1A;&#x56FE;&#x6807;&#x9009;&#x62E9;&#x5927;&#x5C0F; 30&#xFF0C;Dash to Dock &#x914D;&#x7F6E;&#x70B9;&#x51FB;&#x56FE;&#x6807;&#x9690;&#x85CF;&#x6216;&#x5C55;&#x793A;&#xFF0C;etc.</li>
</ul>
<h3 id="&#x8F6F;&#x4EF6;">&#x8F6F;&#x4EF6;</h3>
<p>goldendict</p>
<ul>
<li>&#x524D;&#x5F80;&#x661F;&#x9645;&#x8BD1;&#x738B;&#x7684;&#x8BCD;&#x5178;&#x4E0B;&#x8F7D;&#x7F51;&#x7AD9; <a href="http://download.huzheng.org/zh_CN/" target="_blank">http://download.huzheng.org/zh_CN/</a> &#x4E0B;&#x8F7D;&#x6709;&#x63A8;&#x8350;&#x6807;&#x8BC6;&#x7684;&#x8BCD;&#x5178;</li>
<li>&#x4E0B;&#x8F7D;&#x540E;&#x79FB;&#x52A8;&#x5230;&#x67D0;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x89E3;&#x538B;&#xFF0C;&#x7136;&#x540E;&#x6253;&#x5F00; goldendict &#x7684;&#x8BCD;&#x5178;&#x914D;&#x7F6E;&#xFF0C;&#x9012;&#x5F52;&#x626B;&#x63CF;&#x8BE5;&#x76EE;&#x5F55;</li>
</ul>
<hr>
<h2 id="faq">FAQ</h2>
<h3 id="&#x521B;&#x5EFA;&#x684C;&#x9762;&#x56FE;&#x6807;">&#x521B;&#x5EFA;&#x684C;&#x9762;&#x56FE;&#x6807;</h3>
<p>&#x8FDB;&#x5165; /usr/share/applications&#xFF0C;&#x521B;&#x5EFA; *.desktop&#xFF0C;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x5982;&#x4E0B;</p>
<pre><code class="lang-sh">[Desktop Entry]
Name=
Comment=
Exec=
Icon=
Type=Application
</code></pre>
<h3 id="&#x8BBE;&#x7F6E;&#x76D6;&#x4E0A;&#x76D2;&#x5B50;&#x65F6;&#x4E0D;&#x81EA;&#x52A8;&#x4F11;&#x7720;">&#x8BBE;&#x7F6E;&#x76D6;&#x4E0A;&#x76D2;&#x5B50;&#x65F6;&#x4E0D;&#x81EA;&#x52A8;&#x4F11;&#x7720;</h3>
<pre><code class="lang-conf">sudo echo &quot;HandleLidSwitch=ignore&quot; &gt;&gt; /etc/systemd/logind.conf
</code></pre>
<h3 id="alt--tab-&#x4E0E;&#x5DE5;&#x4F5C;&#x533A;">Alt + Tab &#x4E0E;&#x5DE5;&#x4F5C;&#x533A;</h3>
<p>&#x5F53;&#x6709;&#x591A;&#x4E2A;&#x5DE5;&#x4F5C;&#x533A;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F7F;&#x7528; Alt + Tab &#x4F1A;&#x5207;&#x6362;&#x5305;&#x62EC;&#x6240;&#x6709;&#x5DE5;&#x4F5C;&#x533A;&#x7684;&#x5E94;&#x7528;&#xFF0C;&#x5982;&#x679C;&#x53EA;&#x60F3;&#x5728;&#x5F53;&#x524D;&#x5DE5;&#x4F5C;&#x533A;&#x5207;&#x6362;&#xFF0C;&#x9700;&#x8981;&#x4F7F;&#x7528; gsettings</p>
<pre><code class="lang-sh"><span class="hljs-comment"># org.gnome.shell.app-switcher &#x7684; current-workspace-only &#x9ED8;&#x8BA4;&#x4E3A; false</span>
gsettings <span class="hljs-built_in">set</span> org.gnome.shell.app-switcher current-workspace-only <span class="hljs-literal">true</span>
</code></pre>
<h3 id="vscode-&#x5B57;&#x4F53;">VSCode &#x5B57;&#x4F53;</h3>
<ul>
<li>vscode &#x4E0B;&#x7684;&#x7EC8;&#x7AEF;&#x5B57;&#x4F53;&#x95F4;&#x9694;&#x5927;&#xFF1A;&#x6253;&#x5F00;&#x8BBE;&#x7F6E;&#x641C;&#x7D22; terminal font&#xFF0C;&#x627E;&#x5230; font family &#x968F;&#x4FBF;&#x586B;&#x5199;&#x4E00;&#x4E2A;&#x5B57;&#x4F53;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x6BD4;&#x5982; monospace</li>
<li>vscode&#x4E0B;&#x7A7A;&#x683C;&#x5F88;&#x5C0F;&#xFF1A;&#x6253;&#x5F00;&#x8BBE;&#x7F6E;&#x641C;&#x7D22; font&#xFF0C;&#x540C;&#x4E0A;&#x4FEE;&#x6539; font family</li>
</ul>
<h3 id="&#x68C0;&#x6D4B;&#x5230;&#x7CFB;&#x7EDF;&#x7A0B;&#x5E8F;&#x51FA;&#x73B0;&#x95EE;&#x9898;">&#x68C0;&#x6D4B;&#x5230;&#x7CFB;&#x7EDF;&#x7A0B;&#x5E8F;&#x51FA;&#x73B0;&#x95EE;&#x9898;</h3>
<p>&#x7CFB;&#x7EDF;&#x7ECF;&#x5E38;&#x4F1A;&#x5F39;&#x51FA;&#x8FD9;&#x79CD;&#x9519;&#x8BEF;&#x5F39;&#x7A97;&#xFF0C;&#x7136;&#x540E;&#x95EE;&#x4F60;&#x8981;&#x4E0D;&#x8981;&#x62A5;&#x544A;&#x7ED9;&#x603B;&#x90E8;</p>
<blockquote>
<p>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x662F;&#x4FEE;&#x6539; /etc/default/apport&#xFF0C;&#x5C06;&#x5176;&#x4E2D;&#x7684; enabled &#x8BBE;&#x4E3A; 0</p>
</blockquote>
<h3 id="&#x6E05;&#x7406;-boot">&#x6E05;&#x7406; /boot</h3>
<p>&#x6BCF;&#x6B21; ubuntu &#x5347;&#x7EA7;&#x5185;&#x6838;&#x65F6;&#xFF0C;/boot &#x4F1A;&#x5199;&#x5165;&#x65B0;&#x7684;&#x5185;&#x6838;&#x4EE3;&#x7801;&#xFF0C;&#x4F46;&#x65E7;&#x7684;&#x4E0D;&#x4F1A;&#x5220;&#x9664;&#x3002;&#x7406;&#x8BBA;&#x4E0A; /boot &#x53EA;&#x9700;&#x8981; 200M &#x5DE6;&#x53F3;&#x5C31;&#x8DB3;&#x591F;&#x4E86;&#xFF0C;&#x4F46;&#x662F;&#x5982;&#x679C;&#x4E00;&#x76F4;&#x4E0D;&#x6E05;&#x7406;&#x65E7;&#x7684;&#x5185;&#x6838;&#x4EE3;&#x7801;&#xFF0C;/boot &#x4F1A;&#x53D8;&#x5F97;&#x8D8A;&#x6765;&#x8D8A;&#x5927;</p>
<ul>
<li>&#x4F7F;&#x7528; <code>uname -r</code> &#x67E5;&#x770B;&#x5F53;&#x524D;&#x5185;&#x6838;&#x7248;&#x672C;</li>
<li>&#x4F7F;&#x7528; <code>dpkg --get-selections | grep linux-image</code>&#xFF0C;&#x5982;&#x679C;&#x662F; deinstall &#x5219;&#x4E3A;&#x5DF2;&#x5378;&#x8F7D;&#xFF0C;&#x5982;&#x679C;&#x4E3A; install &#x5219;&#x672A;&#x5378;&#x8F7D;</li>
<li>&#x4F7F;&#x7528; <code>sudo apt remove linux-image-{version}-generic</code> &#x5378;&#x8F7D;&#x65E7;&#x7684;&#x5185;&#x6838;</li>
<li>&#x4F7F;&#x7528; <code>sudo apt autoremove</code> &#x6E05;&#x7406;&#x65E0;&#x7528;&#x7684;&#x6587;&#x4EF6;</li>
</ul>
<h3 id="&#x5347;&#x7EA7;&#x7CFB;&#x7EDF;">&#x5347;&#x7EA7;&#x7CFB;&#x7EDF;</h3>
<ul>
<li>&#x5347;&#x7EA7;&#x5230;&#x6700;&#x65B0;&#x7684;&#x6B63;&#x5F0F;&#x7248;&#xFF1A;<code>do-release-upgrade</code></li>
<li>&#x5347;&#x7EA7;&#x5230;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x53D1;&#x7248;&#xFF1A;<code>do-release-upgrade -d</code></li>
</ul>

                                
                                </section>
                            
                        </div>
                    </div>
                
            </div>

            
                
                <a href="tcp-ip.html" class="navigation navigation-prev " aria-label="Previous page: tcp-ip">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="vscode.html" class="navigation navigation-next " aria-label="Next page: vscode">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"ubuntu","level":"1.5.14","depth":2,"next":{"title":"vscode","level":"1.5.15","depth":2,"path":"soft_skills/vscode.md","ref":"soft_skills/vscode.md","articles":[]},"previous":{"title":"tcp-ip","level":"1.5.13","depth":2,"path":"soft_skills/tcp-ip.md","ref":"soft_skills/tcp-ip.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["-search","-sharing","-lunr"],"pluginsConfig":{"highlight":{},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"soft_skills/ubuntu.md","mtime":"2020-01-22T15:06:53.381Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-17T16:45:36.070Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

